package RPPM.service.Impl;

import RPPM.dao.OnsitestaffDao;
import RPPM.dao.impl.OnsitestaffDaoImpl;
import RPPM.service.OnsitestaffService;

import java.util.List;
import java.util.Map;

public class OnsitestaffServiceImpl implements OnsitestaffService {
    OnsitestaffDao ossDao = new OnsitestaffDaoImpl();
    @Override
    public List<String> getCourses() {
        return ossDao.getCourses();
    }

    @Override
    public List<Map<String, Object>> getStudentsByCouname(String cou_name) {
        return ossDao.getStudentsByCouname(cou_name);
    }

    @Override
    public List<Map<String, Object>> getStudentsByStuname(String cou_name, String stu_name) {
        return ossDao.getStudentsByStuname(cou_name, stu_name);
    }

    @Override
    public void postSign(String cou_name) {
        ossDao.postSign(cou_name);
    }

    @Override
    public void postAdvice(String cou_name) {
        ossDao.postAdvice(cou_name);
    }

    @Override
    public List<Map<String, Object>> getStatisticsSign(String cou_name) {
        return ossDao.getStatisticsSign(cou_name);
    }

    @Override
    public List<Map<String, Object>> getStatisticsAdvice(String cou_name) {
        return ossDao.getStatisticsAdvice(cou_name);
    }
}
